import 'package:flutter/material.dart';

class RippleContainer extends StatelessWidget {
  final Widget child;
  final BorderRadius? borderRadius;
  final GestureTapCallback? onTap;

  const RippleContainer({
    super.key,
    required this.child,
    this.borderRadius,
    this.onTap,
  });

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Material(
        color: Colors.transparent,
        shadowColor: Colors.transparent,
        borderRadius: borderRadius ?? BorderRadius.circular(0),
        child: Ink(
          child: InkWell(
            borderRadius: borderRadius ?? BorderRadius.circular(0),
            onTap: onTap,
            child: child,
          ),
        ),
      ),
    );
  }
}
